﻿using System.Text;

namespace LeRenard.Core.Cryptography.Base64
{
    /// <summary>
    /// Defines a base64 cryptographer.
    /// </summary>
    public sealed class Base64Cryptographer : CryptographerBase
    {
        /// <summary>
        /// Creates a new <see cref="Base64Cryptographer"/>.
        /// </summary>
        /// <param name="encoding">The encoding to be used.</param>
        public Base64Cryptographer(Encoding encoding)
            : base(encoding, new Base64Encryptor(encoding), new Base64Decryptor(encoding))
        {
        }
    }
}